﻿using System;
using System.Collections.Generic;
using System.Drawing;
//using System.Linq;
using System.Text;
//using System.Threading.Tasks;
using TRicheControl.DefaultControlStyles.Helper;
using TRicheControl.Interface.ControlStyle;

namespace TRicheControl.DefaultControlStyles
{
    public class ListBoxStyle : IListBoxStyle
    {
        private Pen mEnableBoxBorderPen;

        private int mCornerRadius = 2;

        public ListBoxStyle()
        {
            mEnableBoxBorderPen = new Pen(Color.Gray);
        }

        public void DrawBoxEnableBorder(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
            DrawHelper.SetGraphics(g);
            rect.Width -= mCornerRadius;
            rect.Height -= mCornerRadius;
            DrawHelper.DrawCornerBoxBorder(g, rect, mEnableBoxBorderPen, mCornerRadius);
        }

        public void DrawBoxUnEnableBorder(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
            
        }

        public void DrawBoxMouseEnterBorder(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
        {
            
        }

        public void DrawBoxEnableBackGround(System.Drawing.Graphics g, System.Drawing.Color backGroundColor, System.Drawing.Rectangle rect)
        {
            
        }

        public void DrawBoxEnableBackGround(System.Drawing.Graphics g, System.Drawing.Color backGroundColor, System.Drawing.Bitmap backImage, System.Drawing.Rectangle rect)
        {
            
        }
    }
}
